<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>


<div class="modal-dialog ms-modal-dialog" style="margin-top:50px;" >
  <div class="modal-content">
     
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      <h4 class="modal-title">删除帐户信息</h4>
    </div>
      <form class="form-horizontal ms-form form-personal-info" method="POST" action="${ctx.host}/accounts/${currentAccount.id}/delete" data-validate="true">
        
        <input type="hidden" name="_method" value="PATCH" />
        
        <input type="hidden" name="accountId" value="${currentAccount.id}" />
        
         <div class="modal-body">
             
             <div class="form-group  ms-form-group">
	          <label class="control-label col-xs-3"><span class="text-red">*</span>邮箱：</label>
	          <div class="col-xs-8">
	          	<p  class="form-control-static">${currentAccount.email}</p>
	            <input type="hidden"  name="email" value="${currentAccount.email}" />
	          </div>
            </div>
	        <div class="form-group  ms-form-group">
	          <label class="control-label col-xs-3"><span class="text-red">*</span>姓名：</label>
	          <div class="col-xs-8">
	          	<p  class="form-control-static">${currentAccount.name}</p>
	            <input type="hidden"  name="name" value="${currentAccount.name}" />
	          </div>
	        </div>
            <div class="form-group  ms-form-group">
	          <label class="control-label col-xs-3"><span class="text-red">*</span>帐号类型：</label>
	            <div class="col-xs-8 pull-left">
		            <p class="form-control-static">${secure.roles[account.authority].description}</p>
		            <input type="hidden"  name="authority" value="${currentAccount.authority}" />
	            </div>
            </div>

  		<c:if test="${currentAccount.authority=='ROLE_DEPARTMENT_USER' }">
        	<div class="form-group  ms-form-group department">
	          <label class="control-label col-xs-3"><span class="text-red">*</span>事业部：</label>
	            <div class="col-xs-8 pull-left">
	             <p class="form-control-static"><c:out value="${departmentName}"/></p>
	            </div>
            </div>      
		</c:if>
        
        </div>
      <div class="modal-footer">
        <button type="submit" class="btn btn-shadow-success btn-shadow umu-btn" >确定</button>
        <button type="button" class="btn btn-shadow-default btn-shadow umu-btn" data-dismiss="modal">取消</button>
      </div>
      </form>

    
  </div>
</div>
